<?php

use think\migration\Migrator;
use think\migration\db\Column;

class AlterCouponOrderAddSalemanId extends Migrator
{
    public function up()
    {
        $this->table('coupon_order')
            ->addColumn('salesman_id',"integer",['limit' => 11,'default' =>0,'comment'=>"业务员"])
            ->save();
    }

    public function down()
    {
        $this->table('coupon_order')
            ->removeColumn('salesman_id');
    }

}
